﻿<UserControl x:Class="personalplaner.gui.settings.views.DisplaySettingsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"
             xmlns:c="clr-namespace:personalplaner.common.controls;assembly=personalplaner.common"
             xmlns:p="clr-namespace:personalplaner.gui.Properties">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="300"/>
            <ColumnDefinition Width="300"/>
        </Grid.ColumnDefinitions>

        <GroupBox Header="Plan Einstellungen">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>

                    <CheckBox Margin="2" IsChecked="{Binding ShowDaysInPlan}">
                        <TextBlock Text="Tage im Plan Anzeigen"/>
                    </CheckBox>
                    <CheckBox Grid.Row="1" Margin="2" IsChecked="{Binding ShowPensumInPlan}">
                        <TextBlock Text="Anstellungsprozente im Plan anzeigen"/>
                    </CheckBox>
                    <CheckBox Grid.Row="2" Margin="2" IsChecked="{Binding ColorWeekendInPlan}">
                        <TextBlock Text="Wochenende im Plan einfärben"/>
                    </CheckBox>
                </Grid>

                <Grid Grid.Row="1" Margin="0,10,0,0">
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>

                    <TextBlock Text="{x:Static p:Resources.NamensDarstellung}"/>
                    <ComboBox Grid.Column="1" ItemsSource="{Binding NameDisplayOptions}" SelectedItem="{Binding SelectedNameDisplayOption}" Margin="1"/>
                </Grid>
            </Grid>
        </GroupBox>

        <GroupBox Header="Wochenend Farben" Grid.Row="1">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>

                <TextBlock Text="Samstag"/>
                <c:ColorPicker Grid.Column="1" SelectedColor="{Binding SaturdayColor}" Margin="1"/>

                <TextBlock Text="Sonntag" Grid.Row="1"/>
                <c:ColorPicker Grid.Column="1" Grid.Row="1" SelectedColor="{Binding SundayColor}" Margin="1"/>

            </Grid>
        </GroupBox>
        
        <GroupBox Grid.Row="1" Grid.Column="1" Header="Ferien Farben">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <!--<ColumnDefinition Width="20"/>-->
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>

                <TextBlock Text="Ferien"/>
                <c:ColorPicker Grid.Column="1" Margin="1" SelectedColor="{Binding HolidayColor}"/>
                <!--<Border Grid.Column="1"/>
                <Button Grid.Column="2">
                    <TextBlock Text="Farbe"/>
                </Button>-->

            </Grid>
        </GroupBox>

        <GroupBox Header="Dienst Zusammenzug" Grid.Row="2">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                
                <TextBlock Text="Dienste im Plus"/>
                <c:ColorPicker Grid.Column="1" SelectedColor="{Binding DienstCountPlusColor}" Margin="1"/>

                <TextBlock Text="Genug Dienste" Grid.Row="1"/>
                <c:ColorPicker Grid.Column="1" Grid.Row="1" SelectedColor="{Binding DienstCountEnoughColor}" Margin="1"/>

                <TextBlock Text="Dienste im Minus" Grid.Row="2"/>
                <c:ColorPicker Grid.Column="1" Grid.Row="2" SelectedColor="{Binding DienstCountMinusColor}" Margin="1"/>

            </Grid>
        </GroupBox>
                
    </Grid>
</UserControl>
